package com.hxzy.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.hxzy.entity.system.SysMenu;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 输出到前端的菜单
 */
@Getter
@Setter
public class SysMenuVO extends SysMenu {

    /**
     * 子菜单
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private List<SysMenuVO> children;

    /**
     * 当前菜单的层级
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private Integer  level;

    /**
     * 上级节点的名称（修改时候用）
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String parentName;
}
